<?php
namespace Dao;

class Email extends DbTable {
	protected $_numeric = ['id'];

	public function getHost($batch) {
		return $this->execute("SELECT host, COUNT(*) AS num FROM $this->tables WHERE batch='{$batch}' GROUP BY host ORDER BY num DESC");
	}
}